<?php

namespace App\Models\Common\EntityData\Channel;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Sgroup
 * @package App\Models\Common\EntityData\Channel
 * @version June 26, 2018, 4:48 pm CST
 *
 * @property string name
 * @property string title
 * @property string orgid
 * @property integer pid
 * @property string logo
 * @property string description
 */
class Sgroup extends Model
{
    use SoftDeletes;


    public $table = 'sgroups';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'title',
        'orgid',
        'pid',
        'logo',
        'description'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'title' => 'string',
        'orgid' => 'string',
        'pid' => 'integer',
        'logo' => 'string',
        'description' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'name' => 'required|max:100'
    ];

    
}
